package com.mapper;

import com.pojo.Car;
import com.pojo.City;
import com.pojo.Order;
import com.pojo.PageOrder;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author xu
 * @Description
 * @Date 2022.2.23
 */
@Repository
public interface OrderMapper {

    //查询地名
    City findAll(@RequestParam("getid") Integer id);
    //查询车
    Car findCar(Integer cid);
    //提交订单
    void addOrder(Order order);
    //查询所有
    List<PageOrder> selectAll(Integer id);
}
